package com.example.dw.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 二维码实体类
 * @author system
 * @since 2024-01-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("qr")
public class QR implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 二维码ID
     */
    @TableId(value = "QRid", type = IdType.AUTO)
    private Integer qrid;

    /**
     * 二维码名称
     */
    @TableField("name")
    private String name;

    /**
     * 二维码图片路径
     */
    @TableField("avatar")
    private String avatar;

    /**
     * 创建时间
     */
    @TableField("createdAt")
    private LocalDateTime createdAt;
} 